package com.zmkm.dao;

import com.zmkm.entity.Product;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public abstract interface ProductMapper {
	public abstract int deleteByPrimaryKey(Integer id);

	public abstract int insert(Product pProduct);

	public abstract int insertSelective(Product product);

	public abstract Product selectByPrimaryKey(Integer id);

	public abstract int updateByPrimaryKeySelective(Product product);

	public abstract int updateByPrimaryKey(Product product);

	public abstract Product selectByProductNameOrModel(@Param("productName") String productName,
			@Param("product_model") String product_model);

	public abstract Product selectByProductOrModel(@Param("productName") String productName,
			@Param("productModel") String productModel);

	public abstract List<String> selectProductNameByType(@Param("product_type") int product_type);

	public abstract List<String> selectModelByProductName(String paramString);
}
